@SET STSADM="c:\program files\common files\microsoft shared\web server extensions\14\bin\stsadm"

net stop SPAdminV4

%STSADM% -o deactivatefeature -name EF_EFInspectUniquePerm -url http://SiteCollectionUrl -force
%STSADM% -o execadmsvcjobs

%STSADM% -o retractsolution -name EFInspectUniquePerm.wsp -immediate -allcontenturls
%STSADM% -o execadmsvcjobs

%STSADM% -o deletesolution -name EFInspectUniquePerm.wsp -override
%STSADM% -o execadmsvcjobs

cd C:\EricFang\VisualStudio\EFInspectUniquePerm\EFInspectUniquePerm\bin\Debug
C:

%STSADM% -o addsolution -filename .\EFInspectUniquePerm.wsp
%STSADM% -o execadmsvcjobs

%STSADM% -o deploysolution -name EFInspectUniquePerm.wsp -immediate -allowgacdeployment -force -url http://WebAppUrl
%STSADM% -o execadmsvcjobs

%STSADM% -o activatefeature -name EF_EFInspectUniquePerm -url http://SiteCollectionUrl
%STSADM% -o execadmsvcjobs

net start SPAdminV4

pause
